@extends('admin.base')

@section('content')
    <div class="layui-card" style="margin-top: 20px; height: 390px;">
        <div class="layui-card-body">
            <div class="layui-form">
                {{csrf_field()}}
                <input type="hidden" value="15" id="tong">
                <div class="layui-form-item"  style="width:80%">
                    <label class="layui-form-label required">图片</label>
                    <div class="layui-input-block">
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-btn-sm" id="uploadPic">上传</button>
                            <div class="layui-upload-list">
                                <ul id="layui-upload-box" class="layui-clear">
                                </ul>
                                <input type="hidden" name="thumbs" id="thumb"  value="" lay-verify="required" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="formSubmitData" wy-data="{url:'{{route('admin.picture.store')}}'}" ><i class="fa fa-save"></i> 保存</button>
                        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary layui-btn-sm"><i class="fa fa-reply-all" aria-hidden="true"></i>  取消</a>
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection

@section('script')
    @include('admin.common._js_upload')
@endsection
